const main = "http://127.0.0.1:3000"; //"http://192.168.27.51:3000"

// 登录
export const signIn = (account, password, type) => `${main}/login/signIn?account=${account}&password=${password}&type=${type}`;
// 注册 post
export const register = () => `${main}/login/register`;
// 获取客户信息
export const getUserData = (account) => `${main}/userData?account=${account}&type=b`;

// 图片储存
export const uploadsApi = () => `${main}/uploads`;

// 文章上传
export const upEssay = () => `${main}/essay/add`;

// 更改头像
export const setPic = () => `${main}/setPic`;
// 修改个人信息
export const setUser = () => `${main}/setUser`;
// 修改密码
export const setWord = () => `${main}/setWord`;
// 获取所有文章
export const getEssayAll = () => `${main}/essay/all?type=t`;
// 通过文章
export const setEssay = () => `${main}/essay/setEssay`;
// 获取所有用户
export const getUserAll = () => `${main}/allUser`;
// 设置用户状态
export const setUserS = () => `${main}/setUserS`;
// 获取文章详细
export const getEssayDetailed = (id) => `${main}/essay/detailed?id=${id}`;
// 图片前部分
export const getImg = (img) => `${main}/imgs/${img}`;
